package cn.IT.service.impl;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.IT.dao.IBaseDAO;
import cn.IT.dao.IUserDAO;
import cn.IT.domain.Type;
import cn.IT.domain.User;
import cn.IT.service.ITypeService;
import cn.IT.service.IUserService;

@Service(value = "typeService")
@SuppressWarnings("all")
@Transactional
public class TypeService implements ITypeService {

	@Resource
	private IBaseDAO<Type> typeDao;

	@Override
	public List<Type> getAllTypes() {
		return typeDao.findAll(Type.class);
	}

	@Override
	public List<String> getAllTypeNames() {
		List<Type> types = typeDao.findAll(Type.class);
		if(!types.isEmpty()){
			
			
		}
		return null;
	}

}
